<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        /**
         * 递归函数：2个条件同时满足才算是递归函数
         * 1、函数中调用了自己
         * 2、一定要有结束条件
         * 
         * */ 
        let i = 1;
        function a(){
            i++;
            console.log("123");
            if(i<=5){
                a()
            }
        }
        a()
    </script>
</body>
</html>